-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Featured Medium post should be most recent post #366
Conversation
As a first pass, this works and LGTM. I do have a couple of concerns:
Your call on whether those are worth addressing now or not! |
Some thoughts:
|
@iredelmeier to your points -
|
My vote is for dynamic non-blocking pull via JS (we did the same on https://www.jaegertracing.io/). I don't want to redeploy the site then posts are added to Medium. |
One possibility worth exploring is rebuilding the site via webhook. We could set up a simple IFTTT applet that In terms of presenting a list of posts statically, Hugo has a convenient I've added a webhook in Netlify. The only remaining step would be setting up the IFTTT applet, which I lack permissions to do. So the flow would be: New Medium post --> |
I like @lucperkins's idea 👍 |
I like the IFTTT idea, are we OK merging with this in its current state to get updates going then I'll work the IFTTT idea? |
@austinlparker Yeah, I think best to merge this now. I can re-work the setup to use Hugo to fetch the JSON from the Medium API. The one missing piece would be to set up the IFTTT pipeline, which can only be done by an "owner" of the Medium blog (which I'm not). I've already set up the Netlify webhook. Do you have access to the Netlify dashboard? If not I can email you the private URL for the HTTP endpoint. |
@lucperkins I've got access to Netlify, yeah. I'll look into getting the IFTTT stuff set up. Thanks! |
This adds some dynamic fetching of the Medium RSS feed in order to display the most recent post on the frontpage rather than using the site data supplied URL.